
<?php include './application/views/common/header.php'; ?>
<div class="dd_position">
  您当前所在的位置：<a href="/"> 壹投资</a> > 我的账户
</div>
<!--dd_position end-->
   <div class="dd_account">
   
<?php include './application/views/common/user_left.php'; ?>
<!-- User_Left End -->

<div class="account_user_con">
       <div class="user_con_box">
	     <div class="user_list_title">
           <?php include './application/views/common/user_sub_left.php'; ?>
		   </div>
         <div class="user_con_table">
         <p style="text-align:left;border:1px solid #FFCF88;background: #FFFDEC;line-height:25px;padding-left:10px;margin-top:10px;"> 
         		投资总额：<?php echo number_format($tender_total,2);?>
				已收总额：<?php echo number_format($ycollection_total,2);?>
				已收本金：<?php echo number_format($ycollection_capital,2);?><br/>
				已收利息：<?php echo number_format($ycollection_interest,2);?>
				未收总额：<?php echo number_format($wcollection_total,2);?>
				未收本金：<?php echo number_format($wcollection_capital,2);?>
				未收利息：<?php echo number_format($wcollection_interest,2);?> 
         	 </p>
         <table width="100%" border="0"cellpadding="0" style="text-align:center; ">
         <tr>	
			<td style="background-color:#2a82c5; color:#ffffff;font-weight:bold;"><strong>标题</strong></td>
			<td style="background-color:#2a82c5; color:#ffffff;font-weight:bold;"><strong>投标时间</strong></td>
			<td style="background-color:#2a82c5; color:#ffffff;font-weight:bold;"><strong>年利率</strong></td>
			<td style="background-color:#2a82c5; color:#ffffff;font-weight:bold;"><strong>期数</strong></td>
			<td style="background-color:#2a82c5; color:#ffffff;font-weight:bold;"><strong>应收时间</strong></td>
			<td style="background-color:#2a82c5; color:#ffffff;font-weight:bold;"><strong>应收本息</strong></td>
			<td style="background-color:#2a82c5; color:#ffffff;font-weight:bold;"><strong>应收利息</strong></td>
			<td style="background-color:#2a82c5; color:#ffffff;font-weight:bold;"><strong></strong></td>
		  </tr>
		  
          <?php $i=0; foreach($collection_list as $col){?>
		  <tr <?php if($i%2==0){?> class="table_gray"<?php }?>>
			<td><a href="/borrow/obj/<?php echo $col['borrow_id'];?>.html"><?php echo $col['title'];?></a></td>
			<td><?php echo date('Y-m-d H:i:s',$col['add_time']);?></td>
			<td><?php echo $col['apr'];?> %</td>
			<td><?php echo $col['forder']+1;?>/<?php echo $col['time_limit'];?></td>
			<td><?php echo date('Y-m-d',$col['repay_time']);?></td>
			<td>&yen;<?php echo number_format($col['repay_account'],2);?>元</td>
			<td>&yen;<?php echo number_format($col['interest'],2);?>元</td>
			<td><a target="_blank" href="/borrow/protocol/<?php echo $col['borrow_id'];?>.html">协议书</a></td>
		  </tr>
		  <?php $i++; }?>
		   <tr>
		  	<td align="center" colspan="8" class="page"><?php echo $this->pagination->create_links();?></td>
		  </tr>
</table>

         </div>
       </div>
     </div>
   </div>
<!--dd_account end-->



<?php include './application/views/common/footer.php'; ?>